<html>
<body>
Reports <code>new FileInputStream()</code> or <code>new FileOutputStream()</code> expressions that can be replaced
with <code>Files.newInputStream()</code> or <code>Files.newOutputStream()</code> calls respectively.
<br>
The streams created using <code>Files</code> methods are usually more efficient than those created by stream constructors.
<p>Example:</p>
<pre><code>
  InputStream is = new BufferedInputStream(new FileInputStream(file));
</code></pre>
<p>After the quick-fix is applied:</p>
<pre><code>
  InputStream is = new BufferedInputStream(Files.newInputStream(file.toPath()));
</code></pre>
<!-- tooltip end -->
<p>This inspection does not show warning if the language level 10 or higher, but the quick-fix is still available.</p>
<p>This inspection only reports if the language level of the project or module is 7 or higher.</p>
<p><small>New in 2022.1</small></p>
</body>
</html>